package com.briup.security.web;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/result")
public class ResultController {

    /**
     * 登录成功跳转地址
     * @return
     */
    @PostMapping("/success")
    public String loginSuccess(HttpServletRequest request) {
        System.out.println(request.getRequestURI());
        return  "登录成功";
    }

    /**
     * 登录失败跳转地址
     * @return
     */
    @PostMapping("/fail")
    public String loginFail() {
        return  "登录失败";
    }
}
